﻿using System.Xml.Serialization;
using LibraryGuard.Interfaces.Configuration;

namespace LibraryGuard.Configuration
{
	/// <summary>
	/// Playlist guard configuration. See <see cref="LibraryGuard.Guards.PlaylistGuard"/>.
	/// </summary>
	public sealed class PlaylistGuard
		: IGuardConfiguration
	{
		#region IGuardConfiguration Members
		/// <inheritdoc />
		[XmlAttribute]
		public bool Enabled { get; set; }
		#endregion

		#region Specific
		/// <summary>
		/// File to which playlist will be saved.
		/// </summary>
		public string File { get; set; }

		/// <summary>
		/// Indicates whether save playlist in UTF-8 or ASCII.
		/// </summary>
		[XmlAttribute]
		public bool Unicode { get; set; }
		#endregion

		#region Constructor
		public PlaylistGuard()
		{
			this.File = string.Empty;
		}
		#endregion
	}
}
